.class final Lcom/ninesky/widget/e;
.super Landroid/widget/BaseAdapter;


# instance fields
.field private a:[Lcom/ninesky/widget/QuickActionItem;

.field private synthetic b:Lcom/ninesky/widget/d;


# direct methods
.method synthetic constructor <init>(Lcom/ninesky/widget/d;)V
    .locals 1

    const/4 v0, 0x0

    invoke-direct {p0, p1, v0}, Lcom/ninesky/widget/e;-><init>(Lcom/ninesky/widget/d;B)V

    return-void
.end method

.method private constructor <init>(Lcom/ninesky/widget/d;B)V
    .locals 1

    iput-object p1, p0, Lcom/ninesky/widget/e;->b:Lcom/ninesky/widget/d;

    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/ninesky/widget/e;->a:[Lcom/ninesky/widget/QuickActionItem;

    return-void
.end method


# virtual methods
.method public final a(I)V
    .locals 2

    iget-object v0, p0, Lcom/ninesky/widget/e;->b:Lcom/ninesky/widget/d;

    invoke-static {v0}, Lcom/ninesky/widget/d;->a(Lcom/ninesky/widget/d;)Ljava/util/HashMap;

    move-result-object v0

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, [Lcom/ninesky/widget/QuickActionItem;

    iput-object v0, p0, Lcom/ninesky/widget/e;->a:[Lcom/ninesky/widget/QuickActionItem;

    invoke-virtual {p0}, Lcom/ninesky/widget/e;->notifyDataSetChanged()V

    return-void
.end method

.method public final getCount()I
    .locals 1

    iget-object v0, p0, Lcom/ninesky/widget/e;->a:[Lcom/ninesky/widget/QuickActionItem;

    if-nez v0, :cond_0

    const/4 v0, 0x0

    :goto_0
    return v0

    :cond_0
    iget-object v0, p0, Lcom/ninesky/widget/e;->a:[Lcom/ninesky/widget/QuickActionItem;

    array-length v0, v0

    goto :goto_0
.end method

.method public final getItem(I)Ljava/lang/Object;
    .locals 1

    iget-object v0, p0, Lcom/ninesky/widget/e;->a:[Lcom/ninesky/widget/QuickActionItem;

    if-nez v0, :cond_0

    const/4 v0, 0x0

    :goto_0
    return-object v0

    :cond_0
    iget-object v0, p0, Lcom/ninesky/widget/e;->a:[Lcom/ninesky/widget/QuickActionItem;

    aget-object v0, v0, p1

    goto :goto_0
.end method

.method public final getItemId(I)J
    .locals 2

    int-to-long v0, p1

    return-wide v0
.end method

.method public final getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 3

    check-cast p2, Lcom/ninesky/widget/QuickActionItem;

    if-nez p2, :cond_0

    iget-object v0, p0, Lcom/ninesky/widget/e;->b:Lcom/ninesky/widget/d;

    iget-object v0, v0, Lcom/ninesky/widget/d;->a:Landroid/content/Context;

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f03001a

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/ninesky/widget/QuickActionItem;

    :goto_0
    iget-object v1, p0, Lcom/ninesky/widget/e;->a:[Lcom/ninesky/widget/QuickActionItem;

    aget-object v1, v1, p1

    invoke-virtual {v1}, Lcom/ninesky/widget/QuickActionItem;->a()I

    move-result v2

    invoke-virtual {v0, v2}, Lcom/ninesky/widget/QuickActionItem;->a(I)V

    invoke-virtual {v1}, Lcom/ninesky/widget/QuickActionItem;->b()I

    move-result v2

    invoke-virtual {v0, v2}, Lcom/ninesky/widget/QuickActionItem;->b(I)V

    invoke-virtual {v1}, Lcom/ninesky/widget/QuickActionItem;->isEnabled()Z

    move-result v2

    invoke-virtual {v0, v2}, Lcom/ninesky/widget/QuickActionItem;->setEnabled(Z)V

    invoke-virtual {v1}, Lcom/ninesky/widget/QuickActionItem;->c()Landroid/view/View$OnClickListener;

    move-result-object v2

    invoke-virtual {v0, v2}, Lcom/ninesky/widget/QuickActionItem;->a(Landroid/view/View$OnClickListener;)V

    new-instance v2, Lcom/ninesky/widget/c;

    invoke-direct {v2, p0, v1}, Lcom/ninesky/widget/c;-><init>(Lcom/ninesky/widget/e;Lcom/ninesky/widget/QuickActionItem;)V

    invoke-virtual {v0, v2}, Lcom/ninesky/widget/QuickActionItem;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-object v0

    :cond_0
    move-object v0, p2

    goto :goto_0
.end method
